<%@page import="com.htsoft.core.Constants"%>
<%@page import="com.htsoft.register.model.Member"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%
	String state = (String) session.getAttribute("state");
	String userState = "-1";//默认值为-1
	Member member = (Member) session.getAttribute(Constants.SESSION_UESR);
	if(member != null){
		userState = member.getState();
		if(state == null){
			state = member.getState();
		}
	}else{
		if(state == null){
			state = "-1";
		}
	}
	
	String path = request.getContextPath();
	int intUserState = Integer.parseInt(userState);
	System.out.println(state);
%>
<div class="tog_step">
	<ul class="agencyStep clearfix">
		<li>
			<span class="<%= ("".equals(state) ? "d_step1" : "d_step5") %>"></span>
			<div class="<%= ("".equals(state) ? "on" : "gray_step") %>">
				1、注册
			</div>
			<span class="<%= ("".equals(state) ? "d_step2" : "d_step4") %>"></span>
		</li>
		<li class="po_lf">
			<span class="<%= ("1".equals(state) ? "d_step7" : "d_step3") %>"></span>
			<div class="<%= ("1".equals(state) ? "on" : "gray_step") %>">
				2、入市风险告知
			</div>
			<span class="<%= ("1".equals(state) ? "d_step2" : "d_step4") %>"></span>
		</li>
		<li class="po_lf">
			<span class="<%= ("2".equals(state) ? "d_step7" : "d_step3") %>"></span>
			<div class="<%= ("2".equals(state) ? "on" : "gray_step") %>">
				3、填写开户注册信息
			</div>
			<span class="<%= ("2".equals(state) ? "d_step2" : "d_step4") %>"></span>
		</li>
		<li class="po_lf">
			<span class="<%= ("3".equals(state) ? "d_step7" : "d_step3") %>"></span>
			<div class="<%= ("3".equals(state) ? "on" : "gray_step") %>">
				4、协议签署
			</div>
			<span class="<%= ("3".equals(state) ? "d_step2" : "d_step4") %>"></span>
		</li>
		<li class="po_lf_1">
			<span class="<%= ("5".equals(state) ? "d_step7" : "d_step3") %>"></span>
			<div class="<%= ("5".equals(state) ? "on" : "gray_step") %>">
				5、补充资料
			</div>
			<span class="<%= ("5".equals(state) ? "d_step8" : "d_step6") %>"></span>
		</li>
	</ul>
</div>
<!--tog_step end-->